package com.bjsxt.file;

import javax.xml.crypto.Data;
import java.io.File;
import java.io.IOException;
import java.util.Date;

public class test {
    public static void main(String[] args) throws IOException {

        File f1 = new File("src/com/bjsxt/file/a.txt");
        System.out.println(System.getProperty("user.dir"));
        File f2 = new File(System.getProperty("user.dir"));
        f1.createNewFile();
        System.out.println(f1.length());
        System.out.println(f1.getName());
        System.out.println(f1.isDirectory());
        System.out.println(new Date(f1.lastModified()));
        System.out.println(f1.getPath());

    }
}
